package software_construction.DesignProject.d2_LSP.demo2;

public class Animal {
    protected double runSpeed;

    public void setRunSpeed(double runSpeed) {
        this.runSpeed = runSpeed;
    }

    public double calcuRunTime(double distance){
        return distance/runSpeed;
    }
}
